<?php

/**
 * 消息
 */
Route::get('message/messages', ['as'=> 'message.messages.index', 'uses' => 'Message\MessageController@index']);
Route::post('message/messages', ['as'=> 'message.messages.store', 'uses' => 'Message\MessageController@store']);
Route::get('message/messages/create', ['as'=> 'message.messages.create', 'uses' => 'Message\MessageController@create']);
Route::put('message/messages/{messages}', ['as'=> 'message.messages.update', 'uses' => 'Message\MessageController@update']);
Route::patch('message/messages/{messages}', ['as'=> 'message.messages.update', 'uses' => 'Message\MessageController@update']);
Route::delete('message/messages/{messages}', ['as'=> 'message.messages.destroy', 'uses' => 'Message\MessageController@destroy']);
Route::get('message/messages/{messages}', ['as'=> 'message.messages.show', 'uses' => 'Message\MessageController@show']);
Route::get('message/messages/{messages}/edit', ['as'=> 'message.messages.edit', 'uses' => 'Message\MessageController@edit']);

/**
 * 消息上线, 下线, 发布
 */
// 消息全部上线
Route::get('message/messages/all_up/view', [
    'as'=> 'message.messages.all_up', 
    'uses' => 'Message\MessageController@allUp'
]);
// 消息全部下线
Route::get('message/messages/all_down/view', [
    'as'=> 'message.messages.all_down', 
    'uses' => 'Message\MessageController@allDown'
]);
// 消息上线发布
Route::get('message/messages/publish/view', [
    'as'=> 'message.messages.publish', 
    'uses' => 'Message\MessageController@publish'
]);
// 消息下线发布
Route::get('message/messages/publish_down/view', [
    'as'=> 'message.messages.publish_down', 
    'uses' => 'Message\MessageController@publishDown'
]);
// 消息单个、批量上线发布
Route::post('message/messages/publish_one_or_more/view', [
    'as'=> 'message.messages.publish_one_or_more', 
    'uses' => 'Message\MessageController@batchModerate'
]);
// 消息单个、批量下线发布
Route::post('message/messages/publish_down_one_or_more/view', [
    'as'=> 'message.messages.publish_down_one_or_more',
    'uses' => 'Message\MessageController@batchModerate'
]);
// 单个,批量上线
Route::post('message/messages/up/view', [
    'as'=> 'message.messages.up', 
    'uses' => 'Message\MessageController@batchModerate'
]);
// 单个,批量下线
Route::post('message/messages/down/view', [
    'as'=> 'message.messages.down', 
    'uses' => 'Message\MessageController@batchModerate'
]);
// 查询进度
Route::get('message/messages/progress/view', [
    'as'=> 'message.messages.progress', 
    'uses' => 'Message\MessageController@queryProgress'
]);